#ifndef SERVER_H
#define SERVER_H
#include <QtNetwork>


class Server : public QObject {
    Q_OBJECT

public:
    Server(int listenPort);
private:
    void Respond(QTcpSocket &clientSocket);
    int port;
    QTcpServer *tcpServer;

private slots:
        void HandleNewConnection();

};


#endif // SERVER_H
